package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.TableColumnMapper;
import cn.uniqueinfo.dp.service.ITableColumnService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.TableColumnVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-23 09:21:34
 * @description: 物理表字段信息
 */
@Service
public class TableColumnServiceImpl extends BaseServiceImpl<TableColumnVO>
        implements ITableColumnService {
    private TableColumnMapper mapper;

    public TableColumnServiceImpl(TableColumnMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<TableColumnVO> findColumnsByTableName(String tableName) {
        return this.mapper.findColumnsByTableName(tableName);
    }
}
